package com.cc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
//@ResponseBody
public class UserController {
    @RequestMapping("select")
    public String select(){
        System.out.println("查询成功！");
        return "select.jsp";
    }
    @RequestMapping("add")
    public String add(){
        System.out.println("新增成功！");
        return "add.jsp";
    }
    @RequestMapping("update")
    public String update(){
        System.out.println("修改成功！");
        return "update.jsp";
    }
    @RequestMapping("delete")
    public String delete(){
        System.out.println("删除成功！");
        return "delete.jsp";
    }
}